import EventEmitter from 'events'

class Bar extends EventEmitter {
	constructor(options) {
		super()
		this.options = options
		// this.$parent = $("#"+options.editor.options.target)
		this.$parent = $(options.selector)
		this.editor = options.editor
	}

	getGraph(){
		return this.editor && this.editor.graph
	}

}

export default Bar